package operation.modules.flashData.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import operation.modules.flashData.dto.FlashDTO;
import operation.modules.flashData.entity.FlashDataEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FlashDataDao extends BaseMapper<FlashDataEntity> {

    /**
     * 查询
     *
     * @return
     */
    List<FlashDataEntity> query(@Param(Constants.WRAPPER) QueryWrapper<FlashDataEntity> queryWrapper);

    /**
     * 查询所有数据
     */
    List<FlashDTO> queryAll();
}